#2-10000所有的完数
list_1 = []
for i in range(2, 10000):
    count = 0
    for j in range(1, i):
        if i % j == 0:
           count += j
    if count == i:
        list_1.append(count)
print(list_1)